package src.main.java.org.methodReferences;


import src.main.java.org.Arrays.Student;

public class CompareData {
    public static int compareByAge(Student o1, Student o2){
        return o1.getAge() - o2.getAge();
    }

    public int compareByAgeDesc(Student o1,Student o2){
        return o2.getAge() - o1.getAge();
    }
}
